import Vue from 'vue'
import App from './App.vue'
import i18n from "./tools/i18n";

Vue.config.productionTip = false

new Vue({
  i18n,
  watch: {
    "$i18n.locale"() {
      // 语言切换后更新当前路由标题
      document.title = i18n.t("translation.PageTitle");
    },
  },
  render: h => h(App),
}).$mount('#app')
